package com.dragon.modules.yuegou.mapper.member;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dragon.modules.yuegou.entity.member.DistrictMemberEntity;
import com.dragon.modules.yuegou.model.member.DistrictMember;
import com.dragon.modules.yuegou.query.member.DistrictMemberQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 商圈会员 Mapper接口
 *
 * @author pbuilder generated
 * @date 2019-03-16 15:13:13
 * @version 2.0
 */
@Component("memDistrictMemberMapper")
public interface DistrictMemberMapper extends BaseMapper<DistrictMemberEntity> {

    /**
     * 查询单笔消费获取积分的会员
     * @param query
     * @return
     */
    List<DistrictMember> conditionsTimeOnece(DistrictMemberQuery query);

    List<DistrictMember> conditionsTimeOne(DistrictMemberQuery query);

    List<DistrictMember> conditionsTimeEever(DistrictMemberQuery query);

    List<DistrictMember> conditionsTimeThree(DistrictMemberQuery query);

    List<DistrictMember> conditionsTimeFour(DistrictMemberQuery query);

    /**
     * 修改会员积分
     * @param busdId
     * @param buyerId
     * @param integral
     */
    Integer changePoints(@Param("busdId") String busdId, @Param("buyerId")String buyerId, @Param("integral")Integer integral);
}
